/**
 * Created by gengrong on 16/5/7.
 */
import { Panel } from 'comps/common';
import RunnableGroupConfigForm from './runnable-group-config-form';
import RunnableGroupTransfer from './runnable-group-transfer';
import * as React from 'react';

class RunnableGroupConfig extends React.Component {

  render() {
    const { detail, devTeamDetail, onRunnableGroupConfigUpdate, onRunnableGroupAssign } = this.props;

    return (
      <div>
        <Panel title='设置'>
          <RunnableGroupConfigForm detail={detail} onSubmit={onRunnableGroupConfigUpdate}/>
        </Panel>
        <Panel title='转交项目'>
          <RunnableGroupTransfer detail={detail} devTeamDetail={devTeamDetail} onSubmit={onRunnableGroupAssign}/>
        </Panel>
      </div>
    );
  }
}

export default RunnableGroupConfig;
